package cn.sfrog.project.biz.admin.domain.vo;

import cn.sfrog.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@ApiModel(description = "聊天消息记录")
public class BizMessageLogVO {

    @ApiModelProperty("id")
    @Excel(name = "id")
    private Long id;

    @ApiModelProperty("聊天会话id")
    @Excel(name = "聊天会话id")
    private Long conversationId;

    @ApiModelProperty("消息类型【1=文字 2=图片 3=文件】")
    @Excel(name = "消息类型【1=文字 2=图片 3=文件】")
    private String type;

    @ApiModelProperty("内容")
    @Excel(name = "内容")
    private String content;

    @ApiModelProperty("发送人id")
    @Excel(name = "发送人id")
    private Long sendUserId;

    @ApiModelProperty("接收人id")
    @Excel(name = "接收人id")
    private Long receiveUserId;

    @ApiModelProperty("消息状态【0=未读 1=已读】")
    @Excel(name = "消息状态【0=未读 1=已读】")
    private String readStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("发送人头像")
    private String sendUserAvatar;

    @ApiModelProperty("接受人头像")
    private String receiveUserAvatar;

    @ApiModelProperty("备注")
    @Excel(name = "备注")
    private String remark;

}
